home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2005 October / PCWOCT05.iso / Software / FromTheMag / XAMPP 1.4.14 / xampp-win32-1.4.14-installer.exe / xampp / php / pear / docs / ps / .tmpphp_ps.h < prev   
Encoding:
C/C++ Source or Header  |  2004-03-24  |  4.4 KB  |  138 lines

  1. /*
  2.    +----------------------------------------------------------------------+
  3.    | PHP version 4.0                                                      |
  4.    +----------------------------------------------------------------------+
  5.    | Copyright (c) 1997-2001 The PHP Group                                |
  6.    +----------------------------------------------------------------------+
  7.    | This source file is subject to version 2.02 of the PHP license,      |
  8.    | that is bundled with this package in the file LICENSE, and is        |
  9.    | available at through the world-wide-web at                           |
  10.    | http://www.php.net/license/2_02.txt.                                 |
  11.    | If you did not receive a copy of the PHP license and are unable to   |
  12.    | obtain it through the world-wide-web, please send a note to          |
  13.    | license@php.net so we can mail you a copy immediately.               |
  14.    +----------------------------------------------------------------------+
  15.    | Authors: Uwe Steinmann <Uwe.Steinmann@fernuni-hagen.de>              |
  16.    +----------------------------------------------------------------------+
  17. */
  18.  
  19. /* $Id: php_ps.h,v 1.5 2004/03/04 07:26:22 steinm Exp $ */
  20.  
  21. #ifndef PHP_PS_H
  22. #define PHP_PS_H
  23.  
  24. #ifdef PHP_WIN32
  25. #define PHP_PS_API __declspec(dllexport)
  26. #else
  27. #define PHP_PS_API
  28. #endif
  29.  
  30. #if HAVE_PS
  31.  
  32. #include <libps/pslib.h>
  33.  
  34. extern zend_module_entry ps_module_entry;
  35. #define ps_module_ptr &ps_module_entry
  36.  
  37. extern PHP_MINFO_FUNCTION(ps);
  38. extern PHP_MINIT_FUNCTION(ps);
  39. extern PHP_MSHUTDOWN_FUNCTION(ps);
  40. PHP_FUNCTION(ps_new);        /* new function */
  41. PHP_FUNCTION(ps_delete);    /* new function */
  42. PHP_FUNCTION(ps_open_file);
  43. PHP_FUNCTION(ps_get_buffer);    /* new function */
  44. PHP_FUNCTION(ps_close);
  45. PHP_FUNCTION(ps_begin_page);
  46. PHP_FUNCTION(ps_end_page);
  47. PHP_FUNCTION(ps_get_value);
  48. PHP_FUNCTION(ps_set_value);
  49. PHP_FUNCTION(ps_get_parameter);
  50. PHP_FUNCTION(ps_set_parameter);
  51. PHP_FUNCTION(ps_findfont);    /* new function */
  52. PHP_FUNCTION(ps_stringwidth);    /* new function */
  53. PHP_FUNCTION(ps_setfont);    /* new function */
  54. PHP_FUNCTION(ps_show);
  55. PHP_FUNCTION(ps_show_xy);
  56. PHP_FUNCTION(ps_show2);
  57. PHP_FUNCTION(ps_show_xy2);
  58. PHP_FUNCTION(ps_continue_text);
  59. PHP_FUNCTION(ps_show_boxed);
  60. PHP_FUNCTION(ps_stringwidth);    /* new parameters: [int font, float size] */
  61. PHP_FUNCTION(ps_set_text_pos);
  62. PHP_FUNCTION(ps_setdash);
  63. PHP_FUNCTION(ps_setpolydash);    /* new function: not yet finished */
  64. PHP_FUNCTION(ps_setflat);
  65. PHP_FUNCTION(ps_setlinejoin);
  66. PHP_FUNCTION(ps_setlinecap);
  67. PHP_FUNCTION(ps_setmiterlimit);
  68. PHP_FUNCTION(ps_setlinewidth);
  69. PHP_FUNCTION(ps_save);
  70. PHP_FUNCTION(ps_restore);
  71. PHP_FUNCTION(ps_translate);
  72. PHP_FUNCTION(ps_scale);
  73. PHP_FUNCTION(ps_rotate);
  74. PHP_FUNCTION(ps_skew);
  75. PHP_FUNCTION(ps_concat);    /* new function */
  76. PHP_FUNCTION(ps_moveto);
  77. PHP_FUNCTION(ps_lineto);
  78. PHP_FUNCTION(ps_curveto);
  79. PHP_FUNCTION(ps_circle);
  80. PHP_FUNCTION(ps_arc);
  81. PHP_FUNCTION(ps_rect);
  82. PHP_FUNCTION(ps_closepath);
  83. PHP_FUNCTION(ps_stroke);
  84. PHP_FUNCTION(ps_closepath_stroke);
  85. PHP_FUNCTION(ps_fill);
  86. PHP_FUNCTION(ps_fill_stroke);
  87. PHP_FUNCTION(ps_closepath_fill_stroke);
  88. PHP_FUNCTION(ps_clip);
  89. PHP_FUNCTION(ps_endpath);
  90. PHP_FUNCTION(ps_setgray_fill);
  91. PHP_FUNCTION(ps_setgray_stroke);
  92. PHP_FUNCTION(ps_setgray);
  93. PHP_FUNCTION(ps_setrgbcolor_fill);
  94. PHP_FUNCTION(ps_setrgbcolor_stroke);
  95. PHP_FUNCTION(ps_setrgbcolor);
  96. PHP_FUNCTION(ps_open_image_file);  /* new parameters: [char *stringpram, int intparam] */
  97. PHP_FUNCTION(ps_open_ccitt);    /* new function */
  98. PHP_FUNCTION(ps_open_image);    /* new function: checkit not yet completeted :( */
  99. PHP_FUNCTION(ps_close_image);
  100. PHP_FUNCTION(ps_place_image);
  101. PHP_FUNCTION(ps_add_bookmark);
  102. PHP_FUNCTION(ps_set_info);
  103. PHP_FUNCTION(ps_attach_file);    /* new function */
  104. PHP_FUNCTION(ps_add_note);    /* new function */
  105. PHP_FUNCTION(ps_add_pdflink);
  106. PHP_FUNCTION(ps_add_locallink);    /* new function */
  107. PHP_FUNCTION(ps_add_launchlink);    /* new function */
  108. PHP_FUNCTION(ps_add_weblink);
  109. PHP_FUNCTION(ps_set_border_style);
  110. PHP_FUNCTION(ps_set_border_color);
  111. PHP_FUNCTION(ps_set_border_dash);
  112. PHP_FUNCTION(ps_setcolor);
  113.  
  114. /* old way of starting a PS document */
  115. PHP_FUNCTION(ps_open);            /* deprecated */
  116.  
  117. /* some more stuff for compatibility */
  118. #if HAVE_LIBGD13
  119. PHP_FUNCTION(ps_open_memory_image);
  120. #endif
  121.  
  122. ZEND_BEGIN_MODULE_GLOBALS(ps)
  123.     long dummy;
  124. ZEND_END_MODULE_GLOBALS(ps)
  125.  
  126. #ifdef ZTS
  127. # define PsSG(v) TSRMG(ps_globals_id, zend_ps_globals *, v)
  128. #else
  129. # define PsSG(v) (ps_globals.v)
  130. #endif
  131.  
  132.  
  133. #else
  134. #define ps_module_ptr NULL
  135. #endif
  136. #define phpext_ps_ptr ps_module_ptr
  137. #endif /* PHP_PS_H */
  138.